import request from '@/utils/request'
export default {

  getList() {
    return request({
      url: `/level`,
      method: 'get'
    })
  },
  getById(id){
    return request({
      url: `/level/${id}`,
      method: 'get'
    })
  },
  modify(level) {
    return request({
      url: `/level`,
      method: 'put',
      data: level
    })
  },
  add(level){
    return request({
      url: `/level`,
      method: 'post',
      data: level
    })
  },
  delete(id){
    return request({
      url: `/level/${id}`,
      method: 'delete'
    })
  }

}
